import User from './user.component.vue';
import Register from '../register.vue';
import Passwords from '../password.vue';
import inviteRole from '../invite_role.vue';
import inviteEwm from '../invite_ewm.vue';
import inviteForm from '../invite_from.vue';
import registerSm from '../register_sm.vue';
import mineList from '../mine_list.vue';
import mineMsg from '../mine_msg.vue';
import mineSet from '../mine_set.vue';
import aboutUs from '../about_us.vue';
import version from '../version.vue';
import power from '../power.vue';
import powerset from '../powerset.vue';
import powerRole from '../power_role.vue';

export const userRoutes = [{
  path: '/user',
  component: User,
  meta: {
    crumbName: '用户'
  },
  children: [{
    path: '',
    name: '我的列表',
    component: mineList
  },{
    path: 'register',
    name: '注册',
    component: Register
  },{
    path: 'password',
    name: '找回密码',
    component: Passwords
  },{
    path: 'power',
    name: '角色设置',
    component: power,
    meta: {
      level: 2
    }
  },{
    path: 'power/powerset',
    name: '开通角色权限',
    component: powerset
  },{
    path: 'powerRole',
    name: '开通角色设置',
    component: powerRole,
    meta: {
      level: 1
    }
  },{
    path: 'inviterole',
    name: '邀请角色选择',
    component: inviteRole,
    meta: {
      level: 1
    }
  },{
    path: 'invitewm',
    name: '邀请分享',
    component: inviteEwm,
    meta: {
      level: 2
    }
  },{
    path: 'inviteform',
    name: '邀请注册',
    component: inviteForm
  },{
    path: 'registersm',
    name: '扫街推广',
    component: registerSm
  },{
    path: 'msg',
    name: '我的资料',
    component: mineMsg
  },{
    path: 'set',
    name: '我的设置',
    component: mineSet,
    meta: {
      level: 1
    }
  },{
    path: 'set/version',
    name: '版本',
    component: version,
    meta: {
      level: 2
    }
  },{
    path: 'set/aboutus',
    name: '关于我们',
    component: aboutUs,
    meta: {
      level: 2
    }
  }]
}]